Don't drop the key focus on Clutter's side if anything but the overview has
pushed a modal (e.g. system modals when activated using the overview).
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/issues/618
},
reset() {
- global.stage.set_key_focus(null);
+ // Don't drop the key focus on Clutter's side if anything but the
+ // overview has pushed a modal (e.g. system modals when activated using
+ // the overview).
+ if (Main.modalCount <= 1)
+ global.stage.set_key_focus(null);
this._entry.text = '';